﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using TeBigScreenWpf.Common;

namespace TeBigScreenWpf.Views
{
    internal class TeFooterGroup : ContentControl
    {
        private readonly Brush brushBackground = Themes.TeFooterGroup.brushBackground;

        public TeFooterGroup()
        {
        }

        private void DrawBackground(DrawingContext dc)
        {
            var bounds = new Rect(RenderSize);

            dc.DrawRectangle(brushBackground, null, bounds);
        }

        protected override void OnRender(DrawingContext dc)
        {
            base.OnRender(dc);

            DrawBackground(dc);
        }
    }
}